package io.github.springstudent.server;

import io.github.springstudent.api.HelloService;

import java.rmi.Naming;

/**
 * @author zhouning
 * @date 2022/07/29 9:37
 */
public class RmiConsumer {

    public static void main(String[] args) throws Exception{
        HelloService helloService = (HelloService) Naming.lookup("rmi://localhost:1111/rmi");
        System.out.println(helloService.clientStatus());
    }
}
